<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <th:block th:include="fragments/header :: header"/>
    <style type="text/css">
        ul{
            list-style-type:none;
            margin:0px;
            padding:5px;
        }
        ul li{
            padding:0px;
        }
        ul li a{
            line-height:25px;
            padding-left:25px;
            padding-top:2px;
            color:#333;
            vertical-align: middle !important;
        }
    </style>

    <script>
        function showContent(url) {
            // console.log(url);
            $("#frameContent").attr("src","/markt/"+url+"/index");
        }
    </script>
</head>
<body class="easyui-layout">
<!--<h2><a href="/markt/superLeague/index">中超页面</a></h2>-->
<!--<h2><a href="/markt/super/index">中超联赛管理</a></h2>-->
<!--<h2><a href="/markt/club/index">俱乐部</a></h2>-->
<!--<h2><a href="/markt/player/index">球员</a></h2>-->
<!--<h2><a href="/markt/match/index">比赛记录</a></h2>-->
<!--<h2><a href="/markt/enumManage/index">枚举管理</a></h2>-->
<!--<h2><a href="/markt/trophy/index">奖杯管理</a></h2>-->
<!--<h2><a href="/markt/coach/index">教练管理</a></h2>-->
<!--<h2><a href="/markt/events/index">赛事管理</a></h2>-->
<!--<h2><a href="/markt/resources/index">资源管理</a></h2>-->
<div data-options="region:'west',split:false,title:'功能菜单'" style="width: 200px">
    <div>
        <ul th:each="resource:${resourcesModel.resources} ">
<!--            <li th:onclick="'javascript:showContent('+${resource.url}+');'"><a th:text="${resource.name}"></a></li>-->
            <li th:onclick="showContent([[${resource.url}]])"><a th:text="${resource.name}"></a></li>
<!--            <li><a th:text="${resource.name}" th:href="@{${resource.url}}"></a></li>-->
        </ul>
    </div>
</div>
<div class="easyui-tabs" data-options="region:'center',border:false">
    <div id="home" title="桌面">
        <div id="divFrame" class="easyui-panel" data-options="border:false,fit:true">
            <iframe id="frameContent" th:src="@{'welcome'}" frameborder="0" width="100%" height="100%" scrolling="auto" marginheight="0" marginwidth="0" frameSpacing="0"></iframe>
        </div>
    </div>
</div>
</body>
</html>
